<template>
    <div class="container">
        <button @click="visible = true">打开</button>
        <Contract :visible="visible" @close="visible = false" @success="onSuccess"></Contract>
    </div>
</template>
<script>
import Contract from "../components/Contract.vue";
export default {
    components: { Contract },
    data() {
        return {
            visible: false,
        };
    },
    methods: {
        onSuccess(url) {
            this.visible = false;
            console.log("拿到的url", url);
        },
    },
};
</script>
<style scoped lang="scss"></style>
